package com.me.modules.questionnaire.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.questionnaire.dao.QuRadioDao;
import com.me.modules.questionnaire.entity.QuRadioEntity;
import com.me.modules.questionnaire.service.QuRadioService;



@Service("quRadioService")
public class QuRadioServiceImpl implements QuRadioService {
	@Autowired
	private QuRadioDao quRadioDao;

	@Override
	public QuRadioEntity queryObject(Integer id){
		return quRadioDao.queryObject(id);
	}

	@Override
	public List<QuRadioEntity> queryList(Map<String, Object> map){
		return quRadioDao.queryList(map);
	}

    @Override
    public List<QuRadioEntity> queryListByBean(QuRadioEntity entity) {
        return quRadioDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return quRadioDao.queryTotal(map);
	}

	@Override
	public int save(QuRadioEntity quRadio){


		return quRadioDao.save(quRadio);
	}

	@Override
	public int update(QuRadioEntity quRadio){
        return quRadioDao.update(quRadio);
	}

	@Override
	public int delete(Integer id){
        return quRadioDao.delete(id);
	}

	@Override
	public int deleteBatch(Integer[] ids){
        return quRadioDao.deleteBatch(ids);
	}

	@Override
	public List<QuRadioEntity> getRadios(Integer quId) {
		return quRadioDao.getRadios(quId);
	}

	@Override
	public List<QuRadioEntity> getRadiosAnswer(Integer quId) {
		return quRadioDao.getRadiosAnswer(quId);
	}


}
